<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
            function fun(n)
        // 编写一个类和类继承，类名为Person，属性name,age,方法sayHello.
        // 一个Student类，继承自Person，自有属性score,自有方法study
        function Person(name,age){
            this.name = name;
            this.age = age
            sayHello();
        }
        function Student(name,age,score){
            Person.call(this,name,age)
            this.score = score
            study();
        }

        //请使用   原型链   构造函数继承  圣杯模式   class继承分别实现

    </script>
</head>
<body>
    
</body>
</html>